﻿using LPLS.Commons.DBModule;
using LPLS.Commons.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPLS.DBEntities.ConfigModels.DeviceInfoModels
{


    [DatabaseKey(DatabaseEnum.SqliteConfig)]
    [SugarTable("DeviceComponentInfo")]
    /// <summary>
    /// 设备部件信息模型
    /// </summary>
    public class DeviceComponentInfo
    {


        [SugarColumn(IsPrimaryKey = true)]
        public Guid  ID { get; set; }=Guid.NewGuid();

        /// <summary>
        /// 部件名称
        /// </summary>
        public string ComponentName { get; set; }
        /// <summary>
        /// 部件代码 内部代码
        /// </summary>
        public string ComponentCode { get; set; }
        /// <summary>
        /// 部件类型
        /// </summary>
        public DeviceComponentTypeEnum  ComponentType { get; set; }
        [SugarColumn(IsIgnore =true)]
        public string ComponentTypeName { get; set; }

        public Guid  DeviceBaseInfoID { get; set; }


    }
}
